This forum is closed to new posts and
responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:
Subject: xpages, tabbed panel, partial refresh does not change active tab
Feedback Type: Problem
Product Area: Other
Technical Area: Application Development
Platform: ALL
Release: 8.5.1
Reproducible: Always
Hello folks,
I seem to be missing something with the simplest application of partial refresh to a tabbed panel. While my project is a bit more complex than this, I simplified the problem to the following just to figure out what was going wrong and why.
I created a very simple xpage consisting of one computed label and a panel (id=refreshTarget) which has within it a tabbed panel with two tabs and a label in each tab panel with static content. Up to this point it works fine. Clicking on each tab in turn displays the appropriate tab panel content.
I then try changing the tab panels to do a partial refresh with the target element set to refreshTarget. I see that the partial refresh does execute, and the contents of the refreshTarget panel are in the AJAX response, but the active tab does not change. This seems to be the simplest application of partial refresh. Have I missed something? I would almost expect a partial refresh to be the default behavior of a tabbed panel click!
Thanks for any insight you might provide,
Rich
Source code of the xpage included for completeness
<xp:label id="timestamp">
<xp:this.value><![CDATA[#{javascript:"The time is " + @Now()}]]></xp:this.value>
</xp:label>
<xp:panel id="refreshTarget">
<xp:tabbedPanel id="tabbedPanel1" selectedTab="tabPanel1">
<xp:tabPanel label="Tab One" id="tabPanel1">
<xp:label value="Your are in tab one" id="label1"></xp:label>
<xp:eventHandler event="onclick" submit="true" refreshMode="partial" refreshId="refreshTarget">
</xp:eventHandler>
</xp:tabPanel>
<xp:tabPanel label="Tab Two" id="tabPanel2">
<xp:label value="You are in tab 2" id="label2"></xp:label>
<xp:eventHandler event="onclick" submit="true"
refreshMode="partial" refreshId="refreshTarget">
</xp:eventHandler>
</xp:tabPanel>
</xp:tabbedPanel>
</xp:panel>
Feedback number WEBB87KQPM created by ~Umberto Xanweman on 07/21/2010
Status: Open
Comments: